package keter.dao.impl;

import java.util.List;

import keter.dao.CodeListDao;
import keter.dao.base.KeterAbstractDao;
import keter.domain.CodeList;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

@Repository
public class CodeListDaoImpl extends KeterAbstractDao<CodeList> implements CodeListDao {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(CodeList.class);

    @Override
    public List<CodeList> findByCodeKind(String codeKind) {
      return getResultList("from CodeList c where c.codeKind = :codeKind", 
              wrap("codeKind"),
              wrap(codeKind.toUpperCase())
      );
    }
	
	
}
